#define _CRT_SECURE_NO_WARNINGS 1
#include<time.h>
#include<vector>
#include<stdlib.h>
using namespace std;

#include"AVLTree.h"

void TestAVLTree2()
{
    const int N = 10;
    vector<int> v;
    v.reserve(N);
    srand((size_t)time(nullptr));
    for (size_t i = 0; i < N; i++)
    {
        v.push_back(rand() + i);
    }
    size_t begin2 = clock();
    AVLTree<int, int> t;
    for (auto e : v)
    {
        t.insert(make_pair(e, e));
    }
    size_t end2 = clock();
    t.InOrder();
    cout<<t.isBalanced();
}
int main()
{
    TestAVLTree2();
	return 0;
}